package com.molin.MethodTest;

public class Demo3Method {
    public static void isEvenNumber(int num){
        if(num%2==0){
            System.out.println("偶数");
        }else{
            System.out.println("奇数");
        }
    }
    public static void print(int n,int m){
        System.out.println('n'+"到"+
                "m为：");
        for(int i=n;i<=m;i++){
            if(i%2!=0){
                System.out.println(i);
            }
        }
    }
    public static void main(String[] args) {
        isEvenNumber(20);
        print(10,20);
    }
}
